package org.digitarts.rtms.tracing;

import java.util.Date;

import org.digitarts.rtms.tracing.threads.ThreadInfoCapture;


public class NullTracer implements ITracer
{

	public ThreadInfoCapture endThreadInfoCapture(String... name)
	{
		StringBuilder buff = new StringBuilder("ThreadInfoCapture:");
		for (String s : name)
		{
			buff.append(s).append("|");
		}
		buff.deleteCharAt(buff.length() - 1);
		System.out.println(buff.toString());
		return ThreadInfoCapture.emptyTic();

	}

	public String lookupRange(String rangeName, long value)
	{

		return "";
	}

	public void startThreadInfoCapture(int options)
	{

	}

	public void startThreadInfoCapture(int options, boolean nanoTime)
	{

	}

	public void trace(int value, String... name)
	{

	}

	public void trace(long value, String... name)
	{
		StringBuilder buff = new StringBuilder("Trace Long:");
		for (String s : name)
		{
			buff.append(s).append("|");
		}
		buff.deleteCharAt(buff.length() - 1).append(":").append(value);
		System.out.println(buff.toString());
	}

	public void trace(String value, String... name)
	{

	}

	public void trace(Date value, String... name)
	{

	}

	public void trace(String value, String type, String... name)
	{

	}

	public void traceDelta(int value, String... name)
	{

	}

	public void traceDelta(long value, String... name)
	{

	}

	public void traceDeltaSticky(int value, String... name)
	{

	}

	public void traceDeltaSticky(long value, String... name)
	{

	}

	public void traceIncident(String... name)
	{
		StringBuilder buff = new StringBuilder("Incident:");
		for (String s : name)
		{
			buff.append(s).append("|");
		}
		buff.deleteCharAt(buff.length() - 1);
		System.out.println(buff.toString());

	}

	public void traceIncident(int value, String... name)
	{

	}

	public void traceSticky(int value, String... name)
	{

	}

	public void traceSticky(long value, String... name)
	{

	}

	public long sizeOf(Object obj)
	{
		return 0;
	}

}
